/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Primitive;

import Common.IUnitHolder;
import ComponentsUI.IPrimitiveUI;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.event.MouseEvent;

/**
 *
 * @author Администратор
 */
public class RectangleUI extends Rectangle implements IPrimitiveUI{

    Graphics2D graphics;
    public RectangleUI(IUnitHolder unitHolder, int x, int y)
    {
       super(unitHolder,x,y);
    }

    public void mouseClicked(MouseEvent e) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void mousePressed(MouseEvent e) {
    }

    public void mouseReleased(MouseEvent e) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void mouseEntered(MouseEvent e) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void mouseExited(MouseEvent e) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void mouseDragged(MouseEvent e) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void mouseMoved(MouseEvent e) {
        throw new UnsupportedOperationException("Not supported yet.");
    }


    public boolean Intersects() {
        throw new UnsupportedOperationException("Not supported yet.");
    }


    public void Draw() {
       graphics.draw(rectangle);
    }

    public void setGraphics(Graphics grapshics) {
       this.graphics=(Graphics2D) grapshics;
    }

}
